package calcul.operation;

public class Circle extends Operator {


	@Override
	public double compute(double arg1, double arg2) {
		if(arg1<0){
			throw new IllegalArgumentException();
		}
		else{
			return Math.PI * arg1 * arg1;
		}
	}

}
